package shopping;

/**
 * 购物车
 *
 * @author 17399
 * @SINCE 2024/12/1 22:04
 */

/**
 * 购物车
 * @author 17399
 * @since 2024/12/1 22:04
 */
public class shoppingCart {
    String name;
    String type;
    double price;
    int count;
    public shoppingCart(){
        this.name=name;
        this.type=type;
        this.price=price;
        this.count=count;
}
    public String getName(){return name;}
    public void setName(String name){this.name=name;}
    public String getType(){return type;}
    public void setType(String type){this.type=type;}
    public double getPrice(){return price;}
    public void setPrice(double price){this.price=price;}
    public int getCount(){return count;}
    public void setCount(int count){this.count=count;}
    @Override
    public String toString(){
        return "商品名称："+name+"， 商品类型："+type+"， 商品价格："+price+"， 商品数量："+count;
    }
}
